/*
 * Decompiled with CFR 0.150.
 */
package com.gys.common.enums;

public enum ProLifeUnit {
    P1("1", "\u5929"),
    P2("2", "\u6708"),
    P3("3", "\u5e74");

    private String code;
    private String name;

    private ProLifeUnit(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public static String getName(String code) {
        for (ProLifeUnit form : ProLifeUnit.values()) {
            if (!form.getCode().equals(code)) continue;
            return form.name;
        }
        return null;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

